<?php
/**
 * The export2csv view file of file module of PMS.
 *
 * 
 * 
 * @author      Congzhi Chen <congzhi@cnezsoft.com>
 * @package     file
 * @version     $Id$
 * 
 */
?>
<?php
echo '"'. implode('","', $fields) . '"' . "\n";
foreach($rows as $row)
{
    echo '"';
    foreach($fields as $fieldName => $fieldLabel)
    {
        isset($row->$fieldName) ? print(strip_tags($row->$fieldName)) : print('');
        echo '","';
    }
    echo '"' . "\n";
}
